package com.dream.cgomall.configura.factory;

import com.dream.cgomall.emnus.OrderStatusEnum;

public class StatusFactory {
    public static String status(Integer statusId){
        switch (statusId){
            case 0:
                return OrderStatusEnum.CREATE_EVENT.desc;
            case 1:
                return OrderStatusEnum.FORMAL_EVENT.desc;
            case 2:
                return OrderStatusEnum.NEED_PAY.desc;
            case 3:
                return OrderStatusEnum.PAY_DONE.desc;
            case 4:
                return OrderStatusEnum.ORDER_FINISHED.desc;
            case 5:
                return OrderStatusEnum.ORDER_CANCEL.desc;
            default:
                return null;
        }
    }
}
